const Router = require('koa-router')
const { tackGoods } = require('../json/tackGoods')
const { returnGoods } = require('../json/returnGoods')

const router = new Router({
  prefix:'/sjj'
})

// 确认收货
router.get('/tackGoods', async (ctx, next) => {
  ctx.body = {
    code: 200,
    message: "调用成功",
    result: tackGoods
  }
})

// 退货列表
router.get('/returnGoods', async (ctx, next) => {
  ctx.body = {
    code: 200,
    message: "调用成功",
    result: returnGoods
  }
})

module.exports = router